
project(plugin-abstractplugin LANGUAGES CXX)

add_library(${PROJECT_NAME} STATIC)

## Compilation options
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC ${CMAKE_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC ${CMAKE_SOURCE_DIR}/plugins)

target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)

## Sources
set(PLUGIN_SOURCES
    constants.h
    abstractplugin.h
    abstractplugin.cpp
)
source_group("Sources" FILES ${PLUGIN_SOURCES})
target_sources(${PROJECT_NAME} PRIVATE ${PLUGIN_SOURCES})
